package com.lyf.core.service;

import java.util.List;

import com.lyf.core.pojo.Department;

/**
 * 部门服务接口
 * @author lyf
 *
 */
public interface DeptService {

	public String add(Department dept);
	
	public String update(Department dept);
	
	public String delete(int did);
	
	public Department findById(int did);
	
	public List<Department> findByParent(int pid ,boolean iterChilds);
	
	/**
	 * 查找所有部门信息
	 * @param iterChilds 是否要按照层级关系去迭代
	 * @return
	 */
	public List<Department> findAll(boolean iterChilds );
	
}
